package com.sservice.service.service;

import com.sservice.urp.entity.Dep;
import com.sservice.urp.vo.DepVo;

import java.util.List;

public interface IDepService {

//    public User queryByUserName(String userName);

    /**
     * 分页查询:关键字，手机号、字段升降序、每页显示大小，某一页
     * 默认进行每页15个显示
     *
     * @param arg
     * @return
     */
    public List<Dep> queryByPage(DepVo arg);

    public int queryCount(DepVo arg);

    int deleteByPrimaryKey(Integer id);


    int insertSelective(Dep arg);

    Dep selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Dep arg);

    int queryCountByComId(DepVo user);

    /**
     * 根据企业ID和名称进行查找
     *
     * @param dep
     * @return
     */
    Dep queryByDepNameAndComId(Dep dep);


}
